diff options
| author | real-zephex <[email protected]> | 2024-05-03 12:28:53 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-03 12:28:53 +0530 |
| commit | 5e1fb505acabab5d6ceb38be898ab1a3368ae567 (patch) | |
| tree | 97c725f2234c6b5dc7f6afa6b71c0f29c845de34 /src/app/manga/[title]/[id] | |
| parent | removed unused pictures from the public directory (diff) | |
| parent | some more changes (diff) | |
| download | dramalama-5e1fb505acabab5d6ceb38be898ab1a3368ae567.tar.xz dramalama-5e1fb505acabab5d6ceb38be898ab1a3368ae567.zip | |
Merge pull request #11 from zephex-alt/deploy-on-cloudflare
video player change, font changes and other minor changes
Diffstat (limited to 'src/app/manga/[title]/[id]')
| -rw-r--r-- | src/app/manga/[title]/[id]/[read]/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/info.module.css | 15 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/page.jsx | 12 |
3 files changed, 15 insertions, 14 deletions
diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx index a2b2555..dc031fd 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -1,6 +1,8 @@ import styles from "./read.module.css";
import Image from "next/image";
+export const runtime = "edge";
+
export default async function Read({ params }) {
const chapterId = params.read;
const results = await getPages(chapterId);
diff --git a/src/app/manga/[title]/[id]/info.module.css b/src/app/manga/[title]/[id]/info.module.css index 1df4583..0420401 100644 --- a/src/app/manga/[title]/[id]/info.module.css +++ b/src/app/manga/[title]/[id]/info.module.css @@ -18,9 +18,8 @@ }
.TitleContainer p {
- font-family: "Lexend Deca", serif;
font-size: 40px;
- font-weight: 1000;
+ font-weight: 700;
}
.TitleContainer img {
@@ -30,13 +29,11 @@ .MangaDescription {
color: white;
- font-family: "Atkinson Hyperlegible", serif;
max-width: 98%;
margin: -10px auto;
}
.Description h2 {
- font-family: "Lexend Deca", serif;
color: gray;
}
@@ -46,14 +43,12 @@ .MangaReleaseYear {
margin-top: 10px;
- font-family: "Poppins", serif;
}
.GenreContainer {
margin-top: 5px;
display: flex;
align-items: center;
- font-family: "Poppins", serif;
}
.GenreText {
@@ -81,8 +76,6 @@ .MangaRatings {
display: flex;
margin-top: 10px;
- font-family: "Poppins", serif;
- /* justify-content: center; */
}
.MangaRatings span {
@@ -98,7 +91,6 @@ .CharactersContainer h2 {
color: gray;
- font-family: "Lexend Deca", serif;
}
.Character {
@@ -130,7 +122,6 @@ text-align: center;
width: 110px;
color: white;
- font-family: "Atkinson Hyperlegible", serif;
}
.CharacterEntry img {
@@ -149,7 +140,6 @@ .ChapterTitle {
color: white;
- font-family: "Lexend Deca", serif;
font-size: 32px;
}
@@ -183,10 +173,10 @@ background-color: #3d3d3d;
cursor: pointer;
transition: background-color 100ms ease-in-out;
+ font-family: "Lexend Deca";
}
.ChapterContainer button p {
- font-family: "Atkinson Hyperlegible", serif;
margin: 2px;
}
@@ -203,7 +193,6 @@ }
.linksNotFound {
- font-family: "Atkinson Hyperlegible", serif;
color: white;
font-size: 18px;
display: flex;
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx index 5aa807d..9d60e0a 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -5,6 +5,8 @@ import { redirect } from "next/navigation"; import { FaStar } from "react-icons/fa";
import { PreFetchChaterLinks } from "../../cacher";
+export const runtime = "edge";
+
export default async function MangaInfo({ params }) {
const id = params.id;
const data = await getMangaInfo(id);
@@ -13,6 +15,14 @@ export default async function MangaInfo({ params }) { redirect("/404");
}
+ let description;
+ if (!data.description) {
+ description =
+ "Sorry but description for this particular manga was not found.";
+ } else {
+ description = data.description.split("<br>")[0];
+ }
+
PreFetchChaterLinks(data.chapters);
return (
@@ -51,7 +61,7 @@ export default async function MangaInfo({ params }) { <div className={styles.MangaDescription}>
<div className={styles.Description}>
<h2>Description</h2>
- <p>{data.description.split("<br")[0]}</p>
+ <p>{description}</p>
</div>
<div className={styles.MangaReleaseYear}>
|